CC =gcc
CFLAGS= -g
CXX=g++
CXXFLAGS= -g -std=c++11
GTKPATH= $(shell pkg-config --cflags gtk+-2.0)
INCLUDEPATH=-I/opt/linux-ffmpeg/ffmpeg/include -I/opt/opencv/include -pthread -I/usr/include/gtk-2.0 \
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo \
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1\
-I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12\
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0\
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2

LIBPATH=-L/opt/linux-ffmpeg/ffmpeg/lib -L/opt/opencv/lib -L/opt/opencv/lib/opencv4/3rdparty 
BINLIBS=-lavfilter -lavutil -lswresample -lavdevice \
-lavformat -lpostproc -lswscale -lavcodec -lopencv_world -lopencv_img_hash -pthread -ldl -lz \
-lade -littnotify -llibjpeg-turbo -llibprotobuf -llibwebp -lIlmImf  -llibjasper -llibpng -llibtiff -lquirc\
-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0\
-lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype


all:test
test:test.cpp
#	@echo $(GTKPATH)
	$(CXX) $(CXXFLAGS) test.cpp -o test $(INCLUDEPATH) -L$(LIBPATH) $(BINLIBS)
clean:
	@rm -rf test
